package com.Common;

import java.util.List;

/**
 * @description:
 * @author: hkw14
 * @time: 2021/4/28 14:54
 */
public class PageInfo<T> {

    private Integer  page;//页码

    private Integer limit;//每页数据条数

    private Integer count;// 总条数

    private List<T> list;// 具体的数据

    public PageInfo() {}

    public PageInfo( Integer count, List<T> list) {
        this.count = count;
        this.list = list;
    }

    public PageInfo(Integer page, Integer limit, Integer count, List<T> list) {
        super();
        this.page = page;
        this.limit = limit;
        this.count = count;
        this.list = list;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}
